package com.ming;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Demo1Application {
    public static void main(String[] args) {
//                                          实为带配置的SpringBean容器
//        ConfigurableApplicationContext run = SpringApplication.run(Demo1Application.class, args);
//     以引导类为基点 扫描同级包与子包

        String[] arg = new String[1];
        arg[0] = "--server.port=8082";
//        args实为临时参数 可改端口等多个属性
//        不写args提高安全性
        SpringApplication.run(Demo1Application.class);

    }

}
